<?php

/**
 * @deprecated Pouzi triedu Db_DbTable_*
 * 
 * Result
 *  
 * @author Radovan Dvorsky
 * @version 
 */

require_once 'Zend/Db/Table/Abstract.php';

class Db_Result extends Zend_Db_Table_Abstract {
	/**
	 * The default table name 
	 */
	protected $_name = 'result';
	
	/**
	 * Primary key
	 */
	protected $_primary = 'rid';
	
	/**
	 * Parrent tables description 
	 */
	protected $_referenceMap = array(
		'Subject' => array(
			'columns' => 'sid',
			'refTableClass' => 'Db_Subject',
			'refColumns' => 'sid',
			'onDelete' => self::CASCADE
		),
		'Student' => array(
			'columns' => array('ID_st'),
			'refTableClass' => 'Db_Student',
			'refColumns' => array('ID_st')
		),
		'Comission' => array(
			'columns' => array('cid'),
			'refTableClass' => 'Db_Commission',
			'refColumns' => array('cid'),
			'onDelete' => self::CASCADE
		)
	);

}

